package com.sjd.mall.domain;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * @ProjectName: sjd
 * @Package: com.sjd.mall.domain
 * @ClassName: SjdAccountAddrDO
 * @Author: genglong
 * @Description: 账户邮寄地址
 * @Date: 2022/1/12 13:50
 * @Version: 1.0
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
@Builder
@Table(name = "sjd_account_address")
public class SjdAccountAddrDO implements Serializable {

    private static final long serialVersionUID = -2096244181012565370L;

    /**
     * 自增id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    /**
     * 账户id
     */
    private Long accountId;

    /**
     * 会员id
     */
    private Long memberId;

    /**
     * 收件人名称
     */
    private String username;

    /**
     * 手机号
     */
    private String mobile;

    /**
     * 省
     */
    private String province;

    /**
     * 省编码
     */
    private String provinceCode;

    /**
     * 市
     */
    private String city;

    /**
     * 市编码
     */
    private String cityCode;

    /**
     * 区
     */
    private String area;

    /**
     * 区编码
     */
    private String areaCode;

    /**
     * 详细地址
     */
    private String address;

    /**
     * 删除标识
     */
    private Boolean delFlag;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 修改时间
     */
    private Date modifyTime;
}
